package com.ruoyi.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户WiFi认证状态对象 user_auth_status
 * 
 * @author ruoyi
 * @date 2025-10-18
 */
public class UserAuthStatus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String deviceId;

    /** 用户MAC地址 */
    @Excel(name = "MAC地址")
    private String macAddress;

    /** 微信用户OpenID */
    @Excel(name = "OpenID")
    private String openid;

    /** 认证状态(0-已认证允许上网,1-未认证禁止上网) */
    @Excel(name = "认证状态", readConverterExp = "0=已认证,1=未认证")
    private Integer status;

    /** 是否观看完广告(0-未观看,1-已观看完) */
    @Excel(name = "观看广告", readConverterExp = "0=未观看,1=已观看")
    private Integer adWatched;

    /** 允许上网时长（秒） */
    @Excel(name = "上网时长(秒)")
    private Integer onlineDuration;

    /** 上线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上线时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date onlineTime;

    /** 认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date authTime;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

    /** 最后轮询时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后活跃时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastPollingTime;

    /** 备注 */
    private String remark;

    // Getters and Setters

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }

    public void setMacAddress(String macAddress) 
    {
        this.macAddress = macAddress;
    }

    public String getMacAddress() 
    {
        return macAddress;
    }

    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setAdWatched(Integer adWatched) 
    {
        this.adWatched = adWatched;
    }

    public Integer getAdWatched() 
    {
        return adWatched;
    }

    public void setOnlineDuration(Integer onlineDuration) 
    {
        this.onlineDuration = onlineDuration;
    }

    public Integer getOnlineDuration() 
    {
        return onlineDuration;
    }

    public void setOnlineTime(Date onlineTime) 
    {
        this.onlineTime = onlineTime;
    }

    public Date getOnlineTime() 
    {
        return onlineTime;
    }

    public void setAuthTime(Date authTime) 
    {
        this.authTime = authTime;
    }

    public Date getAuthTime() 
    {
        return authTime;
    }

    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }

    public void setLastPollingTime(Date lastPollingTime) 
    {
        this.lastPollingTime = lastPollingTime;
    }

    public Date getLastPollingTime() 
    {
        return lastPollingTime;
    }

    @Override
    public String getRemark() 
    {
        return remark;
    }

    @Override
    public void setRemark(String remark) 
    {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("macAddress", getMacAddress())
            .append("openid", getOpenid())
            .append("status", getStatus())
            .append("adWatched", getAdWatched())
            .append("onlineDuration", getOnlineDuration())
            .append("onlineTime", getOnlineTime())
            .append("authTime", getAuthTime())
            .append("expireTime", getExpireTime())
            .append("lastPollingTime", getLastPollingTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}

